<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- 引入 Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<title>无标题文档</title>
<style>
/*header的样式*/
.header{
	height:50dp;
	background:#ddd;
	
}
</style>
</head>

<body>
<div class="header">
<h1>某高校后勤管理</h1>
</div>
<div class="container">
      <form class="form-horizontal" style="width:700px">
        <div class="form-group">
          <label class="control-label col-sm-2" for="primaryKey">主键：</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id="primaryKey" value="xxx" />
          </div>
        </div>
        <div class="form-group">
          <label class="control-label col-sm-2" for="name">值：</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id="value" value="xxxxx" />
          </div>
        </div>
        <div class="form-group">
          <label class="control-label col-sm-2" for="name">标签：</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id="label" value="xxxx" />
          </div>
        </div>
        <div class="form-group">
          <label class="control-label col-sm-2" for="name">种类：</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id="type" value="xxx" />
          </div>
        </div>
        <div class="form-group">
          <label class="control-label col-sm-2" for="name">排序：</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id="mySort" value="xxx" />
          </div>
        </div>
        <div class="form-group">
          <label class="control-label col-sm-2" for="name">备注：</label>
          <div class="col-sm-10">
            <textarea type="text" class="form-control" id="remark"></textarea>
          </div>
        </div>
        <div class="form-group" style="margin:0 auto;display:block; width:100px">
        <button  class="btn btn-default"  onclick="addData()">保存</button>
        </div>
      </form>

</div>
</body>
<script>
function addData()
{
	//获取需要提交的数据
	//获取修改后的数据
	var primaryKey=$("#primaryKey").val();
	var value=$("#value").val();
	var label=$("#label").val();
	var type=$("#type").val();
	var mySort=$("#mySort").val();
	var remark=$("#remark").val();
	
	$.post("/ulms_project/dict/modify",{data_id:data_id,primaryKey:primaryKey,value:value,label:label,type:type,mySort:mySort,remark:remark},function(data)
	{
		alert("增加数据成功！！");
	});
}
</script>
</html>
